package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.DatHangDao;
import com.tt.fashionWebSite.domain.DatHang;
import com.tt.fashionWebSite.domain.ThongTinThanhVien;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("datHang")
public class DatHangJpaDao extends GenericJpaDao<DatHang, String> implements DatHangDao {
    public DatHangJpaDao(){
        super(DatHang.class);
    }

    @Override
    public List<DatHang> getOrderCommon(){
        return getEntityManager().createNamedQuery(DatHang.GET_ORDER_ALL, DatHang.class).getResultList();
    }

}
